home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr28 / del105.zip / DELETE.TXT < prev    next >
Text File  |  1995-02-05  |  13KB  |  342 lines

  1. DELETE.DOC -- DOCUMENTATION FOR DELETE.EXE
  2.  
  3.  
  4. WHAT IS THIS?
  5.  
  6. DELETE.EXE is an enhancement of the DEL or ERASE internal command
  7. that comes with DOS that:
  8.  
  9.     o allows multiple file specifications on the command line;
  10.  
  11.     o optionally deletes Hidden, System, or Read Only files;
  12.  
  13.     o optionally prompts for permission to delete any file;
  14.  
  15.     o optionally deletes files in directories below the
  16.       current one;
  17.  
  18.     o optionally removes empty directories below the current one;
  19.  
  20.     o optionally overwrites files before deleting them; and
  21.  
  22.     o optionally deletes only files dated before, after, or between dates.
  23.  
  24.     o optionally deletes only zero length files.
  25.  
  26.  
  27. HOW DO I RUN IT?
  28.  
  29. Syntax:
  30. D:\MPJ\DELETE\DELETE.EXE [switches] [filespec...]
  31. Switches start with / (not -), and are case insensitive.
  32.   /? or /H Help: show help message
  33.   /Amm-dd-yyyy or /Add.mm.yyyy: delete files dated on or After date
  34.   /Adays: delete files dated on or after "days" ago
  35.   /Dmm-dd-yyyy or /Ddd.mm.yyyy: delete files dated on or before Date
  36.   /Ddays: delete files dated on or before "days" ago
  37.   /F or /Z Force or Zap: delete hidden, system, and read-only
  38.      files
  39.   /G Overwrite eight times, then delete permanently
  40.   /N Null files only -- delete only if zero length
  41.   /O Overwrite twice then delete permanently
  42.   /P or /C Prompt y/N for Confirmation to delete each file
  43.   /Q Quiet: don't display names of deleted files
  44.   /R Recursively remove empty subdirectories
  45.   /S Recurse through subdirectories but don't remove empty ones
  46.  
  47. Note: doesn't ask 'Are you sure?' to delete a directory without /P.
  48.  
  49. Dates for /A or /D can use /,-, or . to separate the month, day, and year. If
  50. you use . to separate the parts of the date, the European convention of
  51. day.month.year is used.  If you use only two digits for the year, the date is
  52. assumed to be between 1980 and 2079 (i. e. 93 means 1993, 02 means 2002).
  53. /A and /D can be used together, but if the "after" date is before the
  54. "before" date, nothing will be erased.
  55.  
  56. For example:
  57.  
  58. DELETE *.OBJ *.SYM
  59. Deletes all normal files with the suffixes .OBJ and .SYM in the
  60. current directory.
  61.  
  62. DELETE /P *.*
  63. Presents the name of each file in the current directory to you
  64. and asks if you want to delete it.  Y or y cause the file to be
  65. deleted, Esc or Ctrl-C cause the program to exit, anything else
  66. skips the file.
  67.  
  68. DELETE /O C:\PRIVATE\SALARY.LST
  69. PERMANENTLY deletes the file C:\PRIVATE\SALARY.LST.
  70.  
  71. DELETE /S /P C:\*.BAK
  72. Presents the name of every file on drive C: with a name ending in
  73. .BAK to you and asks you if you want to delete it.
  74.  
  75. DELETE /D10-1-1993 *.LOG *.BAK
  76. Deletes all files with a suffix of .LOG or .BAK dated on or before
  77. October 1, 1993.
  78.  
  79. DELETE /A10-1-1993 /D10-31-93 *.*
  80. Deletes all files in the current directory dated during October, 1993.
  81.  
  82. DELETE /A23 *.*
  83. Deletes all files in the current directory dated 23 days ago or later.
  84.  
  85. DELETE /D180 *.*
  86. Deletes all files in the current directory dated 180 days ago or 
  87. earlier.
  88.  
  89. DELETE /N /S D:\PROJECT\*.*
  90. Deletes all files in the D:\PROJECT directory and its subdirectories 
  91. that are of zero length.
  92.  
  93.  
  94. ARE YOU SURE?
  95.  
  96. The DOS DEL command sometimes asks you if you are sure, and sometimes it
  97. doesn't.  If you enter a file specification that isn't *.* or a directory
  98. name, DOS won't ask you permission, even if your file specification matches
  99. all of the files in the directory.  A safer approach is to show you the name
  100. of each file, then ask if you want to delete it, like DELETE does when you
  101. specify the /P option.  That is what the DELQ.BAT file does. If you find the
  102. "Are you sure?" prompt to be an annoyance, and like to live a little
  103. dangerously (like I do), then leave the /P switch off.  Then you won't be
  104. asked if you are sure, even if you are deleting entire subdirectories.
  105.  
  106. At the y/N prompt, pressing y or Y will result in the file being deleted or
  107. the directory being removed.  Any other key will cause the file or directory
  108. to be left alone.
  109.  
  110.  
  111. OVERWRITING
  112.  
  113. The overwrite options are intended to PERMANENTLY delete sensitive data.
  114.  
  115. /O Causes one overwrite of the file with cryptographic pseudorandom values,
  116. then the one's compliment of those values, followed by a byte for byte
  117. verification that the correct values were in fact written over the file.  If
  118. the overwrite fails for any reason, the message "OVERWRITE FAILED" will
  119. appear on the screen.  After each of the write operations, the DOS reset disk
  120. function (interrupt 21 hex, function 0D hex) is called in hopes that this
  121. will prevent write delay cache programs from defeating the overwrite.  This
  122. option also deletes the name in the directory entry (once).
  123.  
  124. /G Does what /O does four times.  This is for the purpose of obliterating a
  125. file beyond the possibility of recovery even with sophisticated lab equipment
  126. that can detect what was overwritten a few times by the strength of the
  127. magnetic fields on the disk.  /G exceeds U. S. Government requirements for
  128. deletion of certain very sensitive data.  The truly clinically paranoid can
  129. increase this value by specifying a number from 5 to 9 immediately after the
  130. /G to specify a greater number of overwrite pairs.
  131.  
  132. For example, to overwrite the file "SECRET.DOC" (containing the recipe for
  133. nerve gas or some such noxious thing, perhaps?) 18 times (9 pairs of
  134. overwrites), so that it cannot be unerased by spacefaring aliens:
  135.  
  136. DELETE /G9 SECRET.DOC
  137.  
  138. Either one of the above two options (/G or /O) will cause standard unerase or
  139. undelete utilities to fail, unless you have some TSR operating that defeats
  140. the overwrites.  Some network operating systems that keep old versions of
  141. overwritten files may defeat the effectiveness of the overwrites.  If you are
  142. running standard DOS with no network or unerase TSR software running, then /O
  143. will obliterate data beyond the ability of commercial data recovery services
  144. to recover.  /G will obliterate the data beyond the ability of well-funded
  145. spy organizations to recover.  Keep in mind, however, that the data you are
  146. overwriting may also exist in other places, such as already-deleted temporary
  147. files or swap files, or on backup tapes or disks.
  148.  
  149. When overwriting files, DELETE will also overwrite the entire last cluster of
  150. the file (the "file tail"), if the cluster size on your disk is 8192 bytes or
  151. less.  Since files are overwritten with noncompressible streams of data, you
  152. might (or might not) get an overwrite failure message when overwriting a
  153. compressible file on a full (or nearly full) compressed volume. Use of an
  154. incompressible overwrite sequence guarantees that the whole file is
  155. overwritten, even if you are using a compressed file system.
  156.  
  157. The pseudorandom sequence generator used is the Sapphire II Stream Cipher,
  158. keyed with an obscure combination of things available in the environment of
  159. the PC. It would not be impossible to reproduce the sequence used, but it
  160. would take some time.  A different sequence is used for each pair of
  161. overwrites.
  162.  
  163.  
  164. SUGGESTED ALIAS
  165.  
  166. If you are using DOSKEY, CED, or some similar program, you can
  167. override DOS's DEL function with a command alias, like
  168.  
  169. DOSKEY DEL=DELETE /P $*
  170.  
  171. This would be a safer way to delete -- asking you for
  172. confirmation with each file.  On the other hand, if you work with
  173. data that you need to keep private on a computer that other
  174. people need access to, you may prefer to add the overwrite
  175. option, like
  176.  
  177. DOSKEY DELQ=DELETE /P /O $*
  178.  
  179. If you get tired of the y/N prompts, you could leave the /P
  180. option out of the above examples.
  181.  
  182.  
  183. RECURSION THROUGH SUBDIRECTORIES
  184.  
  185. To delete all files in the current directory and all
  186. subdirectories below this one AND to remove all empty
  187. subdirectories below this one, use the /R switch:
  188.  
  189. DELETE /R *.*
  190.  
  191. To delete specified files in the current directory and all
  192. subdirectories, but remove no subdirectories, use the /S switch:
  193.  
  194. DELETE /S *.BAK *.BK!
  195.  
  196. These recursion options should obviously be used with caution,
  197. but they can save you a lot of time when you need them.
  198.  
  199.  
  200. DANGER!
  201.  
  202. Because this program was designed to delete data, you need to
  203. watch what you are doing and not delete anything you don't want
  204. to.  Be especially careful if you are using the /Z, /F, /R, /S,
  205. /O, or /G options.  I recommend the use of the /P or /C options
  206. as much as you can stand it, unless you are sure you know what
  207. you are doing.
  208.  
  209. WARNING:  DELETING THE SYSTEM FILES IN THE ROOT DIRECTORY OF YOUR
  210. BOOT DRIVE WILL MAKE IT INCAPABLE OF BOOTING.
  211.  
  212. WARNING:  ONCE YOU DELETE A FILE WITH THE /O OR /G OPTIONS,
  213. FILES CAN'T BE UNERASED UNLESS THERE IS SOME UTILITY RUNNING
  214. THAT SAVES ALL INTERMEDIATE VERSIONS OF FILES WHEN THEY ARE
  215. OVERWRITTEN.
  216.  
  217. WARNING:  CERTAIN NETWORK OPERATING SYSTEMS AND TSR-BASED
  218. GUARANTEED UNDELETE UTILITIES MIGHT DEFEAT THE EFFECTIVENESS OF
  219. OVERWRITE OPTIONS.
  220.  
  221. LEGAL NOTICES
  222.  
  223. DELETE version 1.05 Copyright (C) 1992-1995 Michael Paul Johnson.
  224. All rights reserved. Even though I am aware of no bugs in this
  225. program, it is provided with no warranty.  The user assumes all
  226. risk with respect to data loss due to improper operation or
  227. malfunction of this program.  However, if you find a bug, please
  228. tell me so I can fix it.  This is share ware.  You are free to
  229. copy and distribute without modification for the purpose of
  230. evaluation.  If you decide to use this program regularly, you are
  231. required to register it.
  232.  
  233.  
  234. REGISTRATION FEES & BENEFITS
  235.  
  236. For original disk, printed documentation, and registration: $15.
  237.  
  238. For registration only, $10 per copy.  (No disk will be sent, but
  239. your name & address will be added to the registration data base).
  240.  
  241. For site license registration, unlimited copies for use at the
  242. same corporation:  $100.  Includes one original disk and one set
  243. of printed documentation.
  244.  
  245. Please send registration fee, the name of this program, and, if
  246. applicable, the size of disk you want (3.5" or 5.25") to:
  247.  
  248.     Mike Johnson
  249.     PO BOX 1151
  250.     LONGMONT CO 80502-1151
  251.     USA
  252.  
  253.  
  254. HOW TO CONTACT THE AUTHOR
  255.  
  256. 1.  By mail at the above address.
  257.  
  258. 2.  At the Colorado Catacombs BBS, 303-772-1062.  The latest
  259. versions of Mike Johnson's software are here.  (This is the
  260. fastest way).
  261.  
  262. 3.  Internet:  m.p.johnson@ieee.org
  263.  
  264. 4.  CompuServe:  71331,2332
  265.  
  266. 5.  At home at 303-772-1773.
  267.  
  268.  
  269. REVISION HISTORY
  270.  
  271.  5 Feb 95  1.05  Added number of day option for /A and /D
  272.                  switches.  Changed support BBS to Colorado
  273.          Catacombs, 303-772-1062.  Improved secure
  274.          overwrite to use cryptographic stream instead
  275.          of "random()" function.  Added /N option.
  276.  
  277. 24 Feb 93  1.04  Made overwrite pattern pseudorandom for more
  278.                  secure overwrite and erasure on compressed
  279.                  volumes.
  280.  
  281.  2 Oct 93  1.03  Added /A and /D switches.
  282.  
  283.  6 Feb 93  1.02  Added disk reset function.  Made Ctrl-C & Esc
  284.                  exit program at y/N prompt.  Increased depth
  285.          of directory recursion possible.
  286.  
  287. 24 Aug 92  1.01  Minor display formatting changes.
  288.  
  289. 29 Apr 92  1.00  Initial release.
  290.  
  291.  
  292.                               INVOICE
  293.  
  294. Remit to:                                 From:
  295.  
  296. Mike Johnson                              ______________________
  297.  
  298. PO Box 1151                               ______________________
  299.  
  300. Longmont CO 80502-1151                    ______________________
  301.  
  302. USA                                       ______________________
  303.  
  304.  
  305.                       Contact person:
  306.  
  307.                       ______________________
  308.  
  309.                       ______________________
  310.  
  311.                email address: ______________________
  312.  
  313.  
  314. Quantity  Description                       Unit Price    Total
  315.  
  316.           DELETE registration with disk
  317. ________  & printed documentation.           $15.00       ______
  318.  
  319.  
  320.           DELETE single copy registration
  321. ________  only.                              $10.00       ______
  322.  
  323.  
  324.           Site license for unlimited use
  325.       of DELETE at one corporation
  326.       (includes one disk & printed
  327. ________  documentation).                   $100.00       ______
  328.  
  329.                                       Sales Tax (CO only) ______
  330.  
  331.     Shipping (only if disk ordered)       $5.00       ______
  332.  
  333.                                               Total       ______
  334.  
  335.  
  336. I prefer 5.25"____   3.5"____  disks.
  337.  
  338. Note that the DELETE software has been delivered and accepted by
  339. the customer.  Upon reciept of this paid invoice, the printed
  340. documentation and disks paid for will be sent.
  341.  
  342.